<template>
  <div class="box">
    <!-- 菜单页面内容 -->
    
    <div class="box_top">
      <!-- 头部 -->
      <div class="box_top_head">
        <van-nav-bar title="我的" />
      </div>
      <!-- 我的页面内容 -->
      <div class="box_top_content">
        <van-cell is-link title="联系人" replace to="/shoppingcart" />
        <van-cell is-link title="收货地址" @click="toaddresslist" />
      </div>
    </div>
    <!-- 底部导航组件 -->
    <bottomtab></bottomtab>
  </div>
</template>

<script>
import bottomtab from "../../components/bottomtab";
export default {
  data() {
    return {
    };
  },
  // 注册组件
  components: {
    bottomtab
  },
   methods: {
    //  去地址列表
     toaddresslist(){
       this.$router.push({ path:'/addresslist'  })
     },

   },
};
</script>
<style scoped lang="less">
.box {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  .box_top {
    background-color: #f7f8fa;
    height: calc(100vh - 51px); //底部加1px的边框
    overflow: auto;
    border-bottom: 1px solid #f3f3f3;
    .box_top_head {
      position: fixed;
      width: 100%;
      top: 0;
      left: 0;
      height: 46px;
      background-color: #fff;
      z-index: 10;
    }
    .box_top_content{
      margin-top: 46px;
    }
  }
}
.content {
    padding: 16px 16px 160px;
  }
</style>
